<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.9"/>
<title>NGUI: UITextList Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">NGUI
   &#160;<span id="projectnumber">3.11.0</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.9 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Packages</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('class_u_i_text_list.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#nested-classes">Classes</a> &#124;
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-attribs">Public Attributes</a> &#124;
<a href="#pro-methods">Protected Member Functions</a> &#124;
<a href="#pro-attribs">Protected Attributes</a> &#124;
<a href="#properties">Properties</a> &#124;
<a href="class_u_i_text_list-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">UITextList Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Text list can be used with a <a class="el" href="class_u_i_label.html">UILabel</a> to create a scrollable multi-line text field that's easy to add new entries to. Optimal use: chat window.  
 <a href="class_u_i_text_list.html#details">More...</a></p>
<div class="dynheader">
Inheritance diagram for UITextList:</div>
<div class="dyncontent">
 <div class="center">
  <img src="class_u_i_text_list.png" usemap="#UITextList_map" alt=""/>
  <map id="UITextList_map" name="UITextList_map">
</map>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Classes</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_u_i_text_list_1_1_paragraph.html">Paragraph</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
Public Types</h2></td></tr>
<tr class="memitem:a52ddf95203158088b13177c061fdc2a5"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a52ddf95203158088b13177c061fdc2a5"></a>enum &#160;</td><td class="memItemRight" valign="bottom"><b>Style</b> { <b>Text</b>, 
<b>Chat</b>
 }</td></tr>
<tr class="separator:a52ddf95203158088b13177c061fdc2a5"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a7b3ba70c46a6de594b41a916741fa1df"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_u_i_text_list.html#a7b3ba70c46a6de594b41a916741fa1df">Clear</a> ()</td></tr>
<tr class="memdesc:a7b3ba70c46a6de594b41a916741fa1df"><td class="mdescLeft">&#160;</td><td class="mdescRight">Clear the text.  <a href="#a7b3ba70c46a6de594b41a916741fa1df">More...</a><br /></td></tr>
<tr class="separator:a7b3ba70c46a6de594b41a916741fa1df"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac742146a9294aae9bd20e30842b39a2e"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_u_i_text_list.html#ac742146a9294aae9bd20e30842b39a2e">OnScroll</a> (float val)</td></tr>
<tr class="memdesc:ac742146a9294aae9bd20e30842b39a2e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Allow scrolling of the text list.  <a href="#ac742146a9294aae9bd20e30842b39a2e">More...</a><br /></td></tr>
<tr class="separator:ac742146a9294aae9bd20e30842b39a2e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab7bb3ae93bbaa298d6981376d33c810d"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_u_i_text_list.html#ab7bb3ae93bbaa298d6981376d33c810d">OnDrag</a> (Vector2 delta)</td></tr>
<tr class="memdesc:ab7bb3ae93bbaa298d6981376d33c810d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Allow dragging of the text list.  <a href="#ab7bb3ae93bbaa298d6981376d33c810d">More...</a><br /></td></tr>
<tr class="separator:ab7bb3ae93bbaa298d6981376d33c810d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae2833f8ad575ef54cce2c2d673801081"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_u_i_text_list.html#ae2833f8ad575ef54cce2c2d673801081">Add</a> (string text)</td></tr>
<tr class="memdesc:ae2833f8ad575ef54cce2c2d673801081"><td class="mdescLeft">&#160;</td><td class="mdescRight">Add a new paragraph.  <a href="#ae2833f8ad575ef54cce2c2d673801081">More...</a><br /></td></tr>
<tr class="separator:ae2833f8ad575ef54cce2c2d673801081"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Public Attributes</h2></td></tr>
<tr class="memitem:a93e91f56336c359b8299fcb6a89f49c6"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_u_i_label.html">UILabel</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_u_i_text_list.html#a93e91f56336c359b8299fcb6a89f49c6">textLabel</a></td></tr>
<tr class="memdesc:a93e91f56336c359b8299fcb6a89f49c6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Label the contents of which will be modified with the chat entries.  <a href="#a93e91f56336c359b8299fcb6a89f49c6">More...</a><br /></td></tr>
<tr class="separator:a93e91f56336c359b8299fcb6a89f49c6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6f41d868e6b4cc013a6b05184d56962a"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_u_i_progress_bar.html">UIProgressBar</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_u_i_text_list.html#a6f41d868e6b4cc013a6b05184d56962a">scrollBar</a></td></tr>
<tr class="memdesc:a6f41d868e6b4cc013a6b05184d56962a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Vertical scroll bar associated with the text list.  <a href="#a6f41d868e6b4cc013a6b05184d56962a">More...</a><br /></td></tr>
<tr class="separator:a6f41d868e6b4cc013a6b05184d56962a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af4d8a92e0760bd2f3bbc139c2d855c17"><td class="memItemLeft" align="right" valign="top">Style&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_u_i_text_list.html#af4d8a92e0760bd2f3bbc139c2d855c17">style</a> = Style.Text</td></tr>
<tr class="memdesc:af4d8a92e0760bd2f3bbc139c2d855c17"><td class="mdescLeft">&#160;</td><td class="mdescRight">Text style. Text entries go top to bottom. Chat entries go bottom to top.  <a href="#af4d8a92e0760bd2f3bbc139c2d855c17">More...</a><br /></td></tr>
<tr class="separator:af4d8a92e0760bd2f3bbc139c2d855c17"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3718530f8329342d01f0d6de60324234"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_u_i_text_list.html#a3718530f8329342d01f0d6de60324234">paragraphHistory</a> = 100</td></tr>
<tr class="memdesc:a3718530f8329342d01f0d6de60324234"><td class="mdescLeft">&#160;</td><td class="mdescRight">Maximum number of chat log entries to keep before discarding them.  <a href="#a3718530f8329342d01f0d6de60324234">More...</a><br /></td></tr>
<tr class="separator:a3718530f8329342d01f0d6de60324234"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-methods"></a>
Protected Member Functions</h2></td></tr>
<tr class="memitem:ae87e8ff929f32dc2f7ff06df69b0cda1"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_u_i_text_list.html#ae87e8ff929f32dc2f7ff06df69b0cda1">Add</a> (string text, bool updateVisible)</td></tr>
<tr class="memdesc:ae87e8ff929f32dc2f7ff06df69b0cda1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Add a new paragraph.  <a href="#ae87e8ff929f32dc2f7ff06df69b0cda1">More...</a><br /></td></tr>
<tr class="separator:ae87e8ff929f32dc2f7ff06df69b0cda1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab87ac2329f8a738e2e9b59642c8e4df6"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_u_i_text_list.html#ab87ac2329f8a738e2e9b59642c8e4df6">Rebuild</a> ()</td></tr>
<tr class="memdesc:ab87ac2329f8a738e2e9b59642c8e4df6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Rebuild the visible text.  <a href="#ab87ac2329f8a738e2e9b59642c8e4df6">More...</a><br /></td></tr>
<tr class="separator:ab87ac2329f8a738e2e9b59642c8e4df6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7e0f41d20def336f8a0575646ea06977"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_u_i_text_list.html#a7e0f41d20def336f8a0575646ea06977">UpdateVisibleText</a> ()</td></tr>
<tr class="memdesc:a7e0f41d20def336f8a0575646ea06977"><td class="mdescLeft">&#160;</td><td class="mdescRight">Refill the text label based on what's currently visible.  <a href="#a7e0f41d20def336f8a0575646ea06977">More...</a><br /></td></tr>
<tr class="separator:a7e0f41d20def336f8a0575646ea06977"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-attribs"></a>
Protected Attributes</h2></td></tr>
<tr class="memitem:a2389d0123a4db45616be07657b1675e7"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a2389d0123a4db45616be07657b1675e7"></a>
char[]&#160;</td><td class="memItemRight" valign="bottom"><b>mSeparator</b> = new char[] { '\n' }</td></tr>
<tr class="separator:a2389d0123a4db45616be07657b1675e7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a78926885506c1295fd931a1fd4d26613"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a78926885506c1295fd931a1fd4d26613"></a>
float&#160;</td><td class="memItemRight" valign="bottom"><b>mScroll</b> = 0f</td></tr>
<tr class="separator:a78926885506c1295fd931a1fd4d26613"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a481cc204dfc38d380393db78c8f47b7c"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a481cc204dfc38d380393db78c8f47b7c"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><b>mTotalLines</b> = 0</td></tr>
<tr class="separator:a481cc204dfc38d380393db78c8f47b7c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af66be6c7aa3057c699df29fde749adf2"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="af66be6c7aa3057c699df29fde749adf2"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><b>mLastWidth</b> = 0</td></tr>
<tr class="separator:af66be6c7aa3057c699df29fde749adf2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7c14df1fffac536e69883f5d35d637f0"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a7c14df1fffac536e69883f5d35d637f0"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><b>mLastHeight</b> = 0</td></tr>
<tr class="separator:a7c14df1fffac536e69883f5d35d637f0"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="properties"></a>
Properties</h2></td></tr>
<tr class="memitem:a6e077a83b824c78295df9b961cad07dc"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_better_list.html">BetterList</a>&lt; <a class="el" href="class_u_i_text_list_1_1_paragraph.html">Paragraph</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_u_i_text_list.html#a6e077a83b824c78295df9b961cad07dc">paragraphs</a><code> [get]</code></td></tr>
<tr class="memdesc:a6e077a83b824c78295df9b961cad07dc"><td class="mdescLeft">&#160;</td><td class="mdescRight">Paragraphs belonging to this text list.  <a href="#a6e077a83b824c78295df9b961cad07dc">More...</a><br /></td></tr>
<tr class="separator:a6e077a83b824c78295df9b961cad07dc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa67f81a9d5866e1e1bb905e6cb360ce2"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_u_i_text_list.html#aa67f81a9d5866e1e1bb905e6cb360ce2">paragraphCount</a><code> [get]</code></td></tr>
<tr class="memdesc:aa67f81a9d5866e1e1bb905e6cb360ce2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return the number of paragraphs currently in the text list.  <a href="#aa67f81a9d5866e1e1bb905e6cb360ce2">More...</a><br /></td></tr>
<tr class="separator:aa67f81a9d5866e1e1bb905e6cb360ce2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa5be58ef285df1c60c7d27915803c8d3"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_u_i_text_list.html#aa5be58ef285df1c60c7d27915803c8d3">isValid</a><code> [get]</code></td></tr>
<tr class="memdesc:aa5be58ef285df1c60c7d27915803c8d3"><td class="mdescLeft">&#160;</td><td class="mdescRight">Whether the text list is usable.  <a href="#aa5be58ef285df1c60c7d27915803c8d3">More...</a><br /></td></tr>
<tr class="separator:aa5be58ef285df1c60c7d27915803c8d3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5702f9d229523b60d00360615a6be8a2"><td class="memItemLeft" align="right" valign="top">float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_u_i_text_list.html#a5702f9d229523b60d00360615a6be8a2">scrollValue</a><code> [get, set]</code></td></tr>
<tr class="memdesc:a5702f9d229523b60d00360615a6be8a2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Relative (0-1 range) scroll value, with 0 being the oldest entry and 1 being the newest entry.  <a href="#a5702f9d229523b60d00360615a6be8a2">More...</a><br /></td></tr>
<tr class="separator:a5702f9d229523b60d00360615a6be8a2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5de5bf088ac51709a89bb1cd2413dcd6"><td class="memItemLeft" align="right" valign="top">float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_u_i_text_list.html#a5de5bf088ac51709a89bb1cd2413dcd6">lineHeight</a><code> [get]</code></td></tr>
<tr class="memdesc:a5de5bf088ac51709a89bb1cd2413dcd6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Height of each line.  <a href="#a5de5bf088ac51709a89bb1cd2413dcd6">More...</a><br /></td></tr>
<tr class="separator:a5de5bf088ac51709a89bb1cd2413dcd6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a310329e53e45307e043dba627f7506f8"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_u_i_text_list.html#a310329e53e45307e043dba627f7506f8">scrollHeight</a><code> [get]</code></td></tr>
<tr class="memdesc:a310329e53e45307e043dba627f7506f8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Height of the scrollable area (outside of the visible area's bounds).  <a href="#a310329e53e45307e043dba627f7506f8">More...</a><br /></td></tr>
<tr class="separator:a310329e53e45307e043dba627f7506f8"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Text list can be used with a <a class="el" href="class_u_i_label.html">UILabel</a> to create a scrollable multi-line text field that's easy to add new entries to. Optimal use: chat window. </p>
</div><h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="ae2833f8ad575ef54cce2c2d673801081"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void UITextList.Add </td>
          <td>(</td>
          <td class="paramtype">string&#160;</td>
          <td class="paramname"><em>text</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Add a new paragraph. </p>

</div>
</div>
<a class="anchor" id="ae87e8ff929f32dc2f7ff06df69b0cda1"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void UITextList.Add </td>
          <td>(</td>
          <td class="paramtype">string&#160;</td>
          <td class="paramname"><em>text</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>updateVisible</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Add a new paragraph. </p>

</div>
</div>
<a class="anchor" id="a7b3ba70c46a6de594b41a916741fa1df"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void UITextList.Clear </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Clear the text. </p>

</div>
</div>
<a class="anchor" id="ab7bb3ae93bbaa298d6981376d33c810d"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void UITextList.OnDrag </td>
          <td>(</td>
          <td class="paramtype">Vector2&#160;</td>
          <td class="paramname"><em>delta</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Allow dragging of the text list. </p>

</div>
</div>
<a class="anchor" id="ac742146a9294aae9bd20e30842b39a2e"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void UITextList.OnScroll </td>
          <td>(</td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>val</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Allow scrolling of the text list. </p>

</div>
</div>
<a class="anchor" id="ab87ac2329f8a738e2e9b59642c8e4df6"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void UITextList.Rebuild </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Rebuild the visible text. </p>

</div>
</div>
<a class="anchor" id="a7e0f41d20def336f8a0575646ea06977"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void UITextList.UpdateVisibleText </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Refill the text label based on what's currently visible. </p>

</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a class="anchor" id="a3718530f8329342d01f0d6de60324234"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int UITextList.paragraphHistory = 100</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Maximum number of chat log entries to keep before discarding them. </p>

</div>
</div>
<a class="anchor" id="a6f41d868e6b4cc013a6b05184d56962a"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_u_i_progress_bar.html">UIProgressBar</a> UITextList.scrollBar</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Vertical scroll bar associated with the text list. </p>

</div>
</div>
<a class="anchor" id="af4d8a92e0760bd2f3bbc139c2d855c17"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Style UITextList.style = Style.Text</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Text style. Text entries go top to bottom. Chat entries go bottom to top. </p>

</div>
</div>
<a class="anchor" id="a93e91f56336c359b8299fcb6a89f49c6"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_u_i_label.html">UILabel</a> UITextList.textLabel</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Label the contents of which will be modified with the chat entries. </p>

</div>
</div>
<h2 class="groupheader">Property Documentation</h2>
<a class="anchor" id="aa5be58ef285df1c60c7d27915803c8d3"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool UITextList.isValid</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">get</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Whether the text list is usable. </p>

</div>
</div>
<a class="anchor" id="a5de5bf088ac51709a89bb1cd2413dcd6"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">float UITextList.lineHeight</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">get</span><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Height of each line. </p>

</div>
</div>
<a class="anchor" id="aa67f81a9d5866e1e1bb905e6cb360ce2"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int UITextList.paragraphCount</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">get</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Return the number of paragraphs currently in the text list. </p>

</div>
</div>
<a class="anchor" id="a6e077a83b824c78295df9b961cad07dc"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_better_list.html">BetterList</a>&lt;<a class="el" href="class_u_i_text_list_1_1_paragraph.html">Paragraph</a>&gt; UITextList.paragraphs</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">get</span><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Paragraphs belonging to this text list. </p>

</div>
</div>
<a class="anchor" id="a310329e53e45307e043dba627f7506f8"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int UITextList.scrollHeight</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">get</span><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Height of the scrollable area (outside of the visible area's bounds). </p>

</div>
</div>
<a class="anchor" id="a5702f9d229523b60d00360615a6be8a2"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">float UITextList.scrollValue</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">get</span><span class="mlabel">set</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Relative (0-1 range) scroll value, with 0 being the oldest entry and 1 being the newest entry. </p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>D:/WorkDir/Unity3D_Work/taidou_arpg/Assets/NGUI/Scripts/UI/UITextList.cs</li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="class_u_i_text_list.html">UITextList</a></li>
    <li class="footer">Generated on Sat Jan 4 2020 22:30:28 for NGUI by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.9 </li>
  </ul>
</div>
</body>
</html>
